package com.kevinxiaoge.ruoli.dao;

import com.kevinxiaoge.ruoli.bean.Employee;

import java.util.List;

/**
 * @author chengyuanyuan
 */
public interface EmployeeMapper {

    /**
     * getEmployee
     *
     * @return
     */
    List<Employee> getEmployee();

    /**
     * saveEmployee
     *
     * @param employee
     */
    void saveEmployee(Employee employee);

    /**
     * getEmployeeCount
     *
     * @return
     */
    Integer getEmployeeCount();

    /**
     * getEmployeeByUsernameAndId
     *
     * @param id 用户id
     * @param username 用户名
     * @return
     */
    Employee getEmployeeByUsernameAndId(String id, String username); // 如果参数有两个,则使用注解@Param()区分

}
